/*
package com.liyghting.mutildb.adb.controller;

import com.liyghting.mutildb.adb.order.mapper.ATOrderItemMapper;
import com.liyghting.mutildb.adb.order.mapper.ATOrderMapper;
import com.liyghting.mutildb.adb.order.model.ATOrder;
import com.liyghting.mutildb.adb.order.model.ATOrderItem;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

*/
/**
 * @author LiYiGuang
 * @date 2018/10/23 16:25
 *//*

@Slf4j
@RestController
public class AdbController {
	@Autowired
	private ATOrderMapper orderMapper;

	@Autowired
	private ATOrderItemMapper orderItemMapper;

	@RequestMapping("/adb/insert")
	@Transactional("adbTransactionManager")
	public void insert(HttpServletRequest request) {
		log.info("adb insert request {}", request);
		ATOrder order = new ATOrder();
		order.setStatus("A 完成");
		order.setUserId(1);

		int i = orderMapper.insert(order);

		ATOrderItem orderItem = new ATOrderItem();
		orderItem.setOrderId(order.getOrderId());
		orderItem.setStatus("A 完成");
		orderItem.setUserId(1);
		i = orderItemMapper.insert(orderItem);
	}
}
*/
